home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / fantasm 2.1 unreg / EditII / Edit II Doc next >
Encoding:
Text File  |  1992-03-12  |  15.8 KB  |  496 lines  |  [TEXT/MACA]

  1. Edit II Version 2.0.1
  2. © 1990-92 Kenneth Seah
  3. Portions © by Symantec
  4.  
  5. An enhanced text editor for the Macintosh
  6.  
  7. 0.    Prologue
  8.  
  9. This application is copyrighted by Kenneth Seah and is distributed as
  10. shareware. You are welcome to try out Edit II for a week or two and if you
  11. decide that it's something you want to use, send a check drawn on a US Bank
  12. or a draft for US$15 made out to me at the address below, enclosing the
  13. little questionaire.  I'll answer your problems and consider bug fixes via
  14. electronic mail (Internet, America OnLine or GEnie) if you are registered.
  15.  
  16. Otherwise, give a copy of it to a friend, enclosing this file too and trash
  17. your copy (since it takes up valuable space on your disk).
  18.  
  19. I'll consider that you have been registered once you have sent in your
  20. shareware fee.  Upgrades will be posted to America OnLine, GEnie and
  21. Internet.  I can work out a 'site licence' fee if you need several copies
  22. installed at your place.
  23.  
  24. For commercial distribution and correspondence, please contact:
  25.  
  26. Kenneth Seah
  27. P O Box 8565
  28. Austin, TX 78713-8565
  29.  
  30. GEnie: K.SEAH
  31. America OnLine: KSeah
  32. Internet: edit2@procyon.austin.tx.us
  33.  
  34. 1.    Introduction
  35.  
  36. Edit II is intended as a replacement for the Consulair Edit text editor but
  37. which alllows the use of the cursor keys on the Mac keyboard for
  38. navigation. Additionally, the num lock LED on the extended keyboard is used
  39. to indicate whether the cursor pad or the numeric pad mode is on.  The
  40. home, end, page up, page down keys will also work, as will the delete right
  41. (del) key.  One level of undo is supported.  You can launch Edit II by
  42. double clicking old Edit files (since Edit II uses the same creator
  43. signature as Edit, that is, EDIT). This means that you might want to
  44. rebuild the desktop after installing Edit II.
  45.  
  46. Edit II requires System Software 4.1 or later and above and is
  47. Multifinder-friendly.  It is also 32-bit clean and runs fine under System
  48. 7.
  49.  
  50. This program is compiled using Think C 5.0.2 and uses the Capps’ Editor
  51. Toolkit.
  52.  
  53. 2.    Menus
  54.  
  55. Edit II works just like Consulair's Edit.  Each of the menus and their
  56. respective commands are described in the subsequent paragraphs.
  57.  
  58. File menu
  59.  
  60. New
  61.     Creates a new window named 'Untitled-N' for editing.
  62.  
  63. Open...
  64.     Displays the standard file open dialog box to allow the selection of a
  65. file to edit.  The dialog box will display all files of type 'TEXT', 'RRRS'
  66. (Red Ryder script files) and 'ttro' (TeachText read-only text files).
  67.  
  68. Close
  69.     Closes the frontmost editing window.  If the file has been changed in any
  70. way, the standard file save dialog box will be displayed.
  71.  
  72. Save
  73.     Saves the frontmost window to its file on disk.  If the file has not been
  74. previously saved, perform a 'Save As...' operation.
  75.  
  76. Save As...
  77.     Saves the frontmost window to a differently named file by presenting the
  78. standard file save dialog box.
  79.  
  80. Revert
  81.     Reverts the frontmost window to the most recently saved version of the
  82. file.  A prompt message is displayed to confirm the action.
  83.  
  84. Page Setup...
  85.     Displays the standard printer Page Setup dialog box.
  86.  
  87. Print
  88.     Displays the standard printer Print dialog box to initiate printing of the
  89. frontmost window.
  90.  
  91. Transfer
  92.     Displays the standard file selection dialog box to choose an application
  93. program to run.
  94.  
  95. Quit    
  96.     Quits Edit II after prompting for saving of any changed windows.
  97.  
  98. Edit menu
  99.  
  100. Undo
  101.     Reverts from the previous editing operation.
  102.  
  103. Cut
  104.     Removes the currently selected text and copies it into the clipboard.
  105.  
  106. Copy
  107.     Copies the currently selected text into the clipboard without deleting it.
  108.  
  109. Paste
  110.     Pastes the clipboard text at the insertion point.  If a range has been
  111. selected, then the pasted text will replace the selection.
  112.  
  113. Clear
  114.     Deletes the currently selected text without copying it to the clipboard.
  115.  
  116. Select All
  117.     Selects all the text in the frontmost window.
  118.  
  119. Search menu
  120.  
  121. Find...
  122.     Displays the 'find and replace' dialog box for entry of search (Find) and
  123. replacement (Replace with) strings.  GREP-style searching is available (see
  124. later on how to define GREP search and replacement strings).  The 'find and
  125. replace' dialog box has several options:
  126.  
  127.     'Match Words' will only flag a match if there is an exact word for word
  128. match with the search string.
  129.  
  130.     'Wrap Around' will flag matches even when the words wrap over at the end
  131. of a line.
  132.  
  133.     'Ignore Case' will flag matches even when the cases (capitals and small
  134. letters) do not match but the letters do.
  135.  
  136.     There is an option to do multi-file searches of all TEXT-type files inside
  137. a folder.  The multi-file search is activated by clicking on the Multi-File
  138. Search checkbox which brings up the standard file selection dialog box. 
  139. Selecting a TEXT-type file will initiate multi-file searches of the search
  140. string for all TEXT-type files within the folder.  Note that multi-file
  141. searching does not descend into subfolders (i.e. one folder level only).
  142.  
  143.     Cutting and pasting of text selections is allowed into the search and
  144. replacement strings in the 'find and replace' dialog box.  This is achieved
  145. by using the command-C and command-V combinations.  If you want to enter
  146. the tab or return characters in the Find dialog box, key in command-tab and
  147. command-return respectively.
  148.  
  149.     Search and replacement strings are retained between searches.  The 'Don't
  150. Find' button will retain the search and replacement string entries but will
  151. not initiate any searches.  The 'Cancel' button on the other hand, will
  152. ignore any entries made for these strings.
  153.  
  154. Enter Selection
  155.     Puts the currently selected text into the search string.
  156.  
  157. Replace
  158.     Replaces the currently selected text with the replacement string.
  159.  
  160. Replace and Find Again
  161.     Replaces the currently selected text with the replacement string and
  162. searches for the next occurrence of the search string.
  163.  
  164. Replace All...
  165.     Replaces all occurences of the search string with the replacement string. 
  166. Prompts for confirmed replacement if required.
  167.  
  168. Find in Next File
  169.     Only operable under multi-file searches – will look for occurence of the
  170. search string in the next file in the specified folder.
  171.  
  172. Go to Top
  173. Go to Bottom
  174.     Move the insertion point to the beginning or end of the file,
  175. respectively.
  176.  
  177. Go to Line#...
  178.     Displays a dialog and moves to the specified line.
  179.  
  180. Goodies menu
  181.  
  182. Shift Left
  183. Shift Right
  184.     Moves the selected text one space to the left or right.
  185.  
  186. Balance
  187.     Extends current selection to encompass the next level of enclosing braces
  188. {}, brackets [] or parentheses ().  A beep means that the text could not be
  189. balanced. [Great for C and Lisp people!]
  190.  
  191. Add LFs
  192.     Adds linefeed characters to the end of every line.
  193.  
  194. Strip LFs
  195.     Removes linefeed characters from the text.
  196.  
  197. Wrap to Column...
  198.     Wraps the text to a user-specified column.
  199.  
  200. Wrap to Window
  201.     Wraps the text to the window width.
  202.  
  203. Unwrap
  204.     Almost the reverse of the above wraps.  What Unwrap does is to replace all
  205. single occurences of the 'return' character by a space and leave multiple
  206. runs of returns untouched.  Thus a 'paragraph' is recognized as ending in
  207. two or more returns.
  208. Remove Invisibles
  209.     Removes all the invisible (non-printing) characters with the exceptions of
  210. tab, return and linefeed.
  211.  
  212.  
  213. Options menu
  214.  
  215. Font
  216. Size
  217. Creator
  218.     Select the font, size and  creator for the file being edited.  The size
  219. submenu has 'Larger', 'Smaller' and 'Other...' commands to allow for
  220. selection of non-standard sizes.  The creators supported by Edit II are:
  221.  
  222. EDIT    Consulair Edit (and Edit II)
  223. MPS    Apple MPW
  224. KAHL    Think C
  225. PJMM    Think Pascal
  226. ALFA    Alpha
  227. MACA    MacWrite
  228. MSWD    Microsoft Word
  229. nX^n    WriteNow
  230. ttxt    TeachText
  231. PEDT    DA Edit or PEdit
  232. WNGZ    WingZ
  233.  
  234.     Default font is Monaco, default size is 9 and default creator is EDIT.
  235.  
  236. Set Tabs...
  237.     Sets the number of spaces to one tab stop (default is 4 spaces to one
  238. tab).
  239.  
  240. AutoIndent
  241.     Toggles automatic indentation of text (useful for programmers).  Default
  242. is autoindent on.
  243.  
  244. Strip LF
  245. SmartStrip
  246.     If these two options are not selected, then linefeeds in text files are
  247. not filtered but passed as is.  Selecting the Strip LF option removes the
  248. linefeeds when the files are read in.  SmartStrip is an intelligent
  249. linefeed remover in which linefeeds are removed when the file is read and
  250. replaced (after each CR or replacing each CR - depending on the input
  251. format) when the file is written back.  The default option is SmartStrip.
  252.  
  253. New Untitled
  254.     If selected, displays an Untitled window when starting Edit II (next time
  255. of course).  Default is on.
  256.  
  257. Print Headers
  258.     If selected will print informative header information at the top of every
  259. page.  Default is to print these headers.
  260.  
  261. Save Preferences
  262.     Saves the option settings (all the items in the option menu) into the
  263. EditPrefs file which is stored in the Preferences folder of the System
  264. Folder.
  265.  
  266. Windows menu
  267.  
  268. Layer
  269.     Layers all the windows neatly on the screen.  The previous frontmost
  270. window is brought to the front.  
  271.  
  272. Tile
  273.     Tiles all the windows neatly on the screen.  The previous frontmost window
  274. is selected.  This option is active for 9 or less windows.  
  275.  
  276. Close All
  277. Save All
  278.     Closes (or saves) all the displayed windows.  Saving does not close any
  279. windows.  Any untitled windows will be 'saved as'.  
  280.  
  281. <window name list>
  282.     Each of the window names appears here for rapid selection.  The first 9
  283. windows have command key equivalents 'command-1' through 'command-9'.  Edit
  284. II can now handle unlimited windows (subject to available system memory set
  285. aside for it of course).
  286.  
  287. 3.    Keyboard Frolics
  288.  
  289. Cursor keys on the Macintosh Plus and above now work.  In addition, if you
  290. have an extended keyboard, then the extra keys between the main keys and
  291. keypad also work as follows:
  292.  
  293. page up
  294.     Moves to the previous screenful of text without changing the insertion
  295. point.
  296.  
  297. page down
  298.     Moves to the next screenful of text without changing the insertion point.
  299.  
  300. home
  301.     Moves the insertion point to the beginning of the file.
  302.  
  303. end
  304.     Moves the insertion point to the end of the file.
  305.  
  306. del (delete to right)
  307.     Deletes the character to the right of the insertion point.
  308.  
  309. enter (on keypad)
  310.     Scrolls to the insertion point.
  311.  
  312. - (on keypad)
  313.     Jumps around the five insertion points last clicked at.  Note that
  314. double-clicking to select a word counts as two insertion points (a quirk of
  315. Capps’) and that Edit II will cycle through all five points, even though
  316. they are the same (like at the beginning).  So if the insertion point seems
  317. stuck, keep on pressing '-'!
  318.  
  319. F1–F4
  320.     Undo, Cut, Copy and Paste.
  321.  
  322. option-return
  323.     If autoindent mode is on, then hitting option-return will move the
  324. insertion point to the start of the next line and not to do any
  325. autoindenting for that line.
  326.  
  327. You can also toggle the special cursor pad mode by hitting the num lock key
  328. on the numeric keypad.  The num lock light on the keyboard will go off
  329. (indicating that the numeric keypad is now in cursor mode).  This displays
  330. an additional (disabled) menu called CursorPad.  The keys on the numeric
  331. keypad now take on special functionality as given below (like the I*M
  332. keypad):
  333.  
  334.  
  335. 4.    GREP searching and replacement
  336.  
  337. GREP searching can be now done using regular expressions like the Unix GREP
  338. tool. Pattern matching of regular expressions is carried out as follows:
  339.  
  340. Patterns (regular expressions)
  341.  
  342. 1.    Any non-special character is a regular expression which matches itself. 
  343. Characters [ ] \ and . are special characters and should be preceded by \
  344. (see rule 4).
  345.  
  346. 2.    A regular expression can be concatenated with another regular
  347. expression.
  348.  
  349. 3.    The . (period) is a special character which matches any one character.
  350.  
  351. 4.    The \ followed by any character except ( ) < > or one of the digits 1-9
  352. is a regular expression which matches that character.
  353.  
  354. 5.    A string of characters s surrounded by brackets [ ] forms a regular
  355. expression that exactly matches any one of the characters in s.  The   
  356. regular expression [^ß] matches any character not in the string ß.  If a
  357. sequence of 3 characters a-b occurs in the string, then this represents all
  358. the characters from a to b inclusive.
  359.  
  360. 6.    A regular expression R followed by * forms a regular expression which
  361. matches zero or more occurences of R.
  362.  
  363. 7.    A regular expression surrounded by \( and \) matches whatever the
  364. regular  expression matches.
  365.  
  366. 8.    A \ followed by a digit n 1 to 9 is a regular expression which matches
  367. whatever the nth subexpression surrounded by \( \) matches.
  368.  
  369. 9.    A regular expression surrounded by \< and \> constrains the match to
  370. occur when the regular expression is immediately preceded and followed by
  371. characters which do not match [A-Za-z0-9_] and the first and last
  372. characters match [A-Za-z0-9_].  This allows us to look for "words".
  373.  
  374. 10.    A regular expression which starts with ^ anchors the search pattern to
  375. the start of a line.  The ^ appearing anywhere else in the regular
  376. expression will match the character ^.
  377.  
  378. 11.    A regular expression ending in $ will anchor the search pattern to the
  379. end of a line.  The $ appearing anywhere else in the regular expression
  380. will match the $.
  381.  
  382. Replacements
  383.  
  384. 1.    Each occurence of & in the replacement string will be substituted with
  385. whatever was last matched by the regular expression.
  386.  
  387. 2.    Each occurence of the form \n where n is a digit 1 to 9 will substitute
  388. whatever was matched by the nth subexpression enclosed in \( and \).
  389.  
  390. 3.    Each occurence of the form \p where p is not a digit 1 to 9 will
  391. substitute that character p.
  392.  
  393. 5.    Workarounds and other hints
  394.  
  395. Edit II can only search for a pattern in a forward direction.  If you want
  396. to search backwards, the best workaround is to go back to the start of the
  397. file (home) and then search.
  398.  
  399. All files are edited in memory.  So if you have a large file, reset the
  400. size of the application using Get Info on the Edit II application icon and
  401. change the size of the application memory. Or better still - run under the
  402. Finder (and not MultiFinder).  Naturally you shouldn't edit a 2MB file on a
  403. 1MB Mac using Edit II!  Try as far as possible to have approximately twice
  404. the memory assigned to Edit II than the total size of all the files you're
  405. editing.
  406.  
  407. Holding the option key when Edit II is starting up will bring up the
  408. standard file open dialog box for you to select the name of a file to edit.
  409.  
  410. Users of PwrSwitcher should hit option-num lock to turn on cursor pad mode
  411. without causing a switch to the next application.
  412.  
  413. Edit II will try to save files when memory runs too low but there is no
  414. guarantee that it won't crash while doing this.  The advice is to
  415. frequently check the available space (see the About Edit II... box to show
  416. the current amount of free memory).
  417.  
  418. Additional creator names can be inserted into the Creator menu by using
  419. ResEdit (use at your own risk!!).  Note that exactly FOUR letters must be
  420. keyed in for each creator name.
  421.  
  422. Holding the control key when quitting from Edit II will forcibly turn off
  423. the num lock LED (just in case you ever need it!).
  424.  
  425. 6.    Bug Reports
  426.  
  427. If you find any bugs with this program, please write to me at the above
  428. address. You can also send electronic mail to me on GEnie as K.SEAH, on
  429. America OnLine as KSeah or via Internet as edit2@procyon.austin.tx.us.
  430.  
  431. 7.    Warranty
  432.  
  433. Kenneth Seah hereby disclaims all warranties relating to this software,
  434. whether express or implied, including without limitation any implied
  435. warranties of merchantability or fitness for a particular purpose.  Kenneth
  436. Seah will not be liable for any special, incidental, consequential,
  437. indirect or similar damages due to loss of data or any other reason, even
  438. if Kenneth Seah or an agent of his has been advised of the possibility of
  439. such damages.  In no event shall Kenneth Seah's liability for any damages
  440. ever exceed the price paid for the license to use software, regardless of
  441. the form of the claim.  The person using the software bears all risk as to
  442. the quality and performance of the software.
  443.  
  444. 8.    Questionaire
  445.  
  446. Copy, print this and fill in the blanks!
  447.  
  448. REGISTERING FOR: Edit II Version 2.0.1 March 12, 1992
  449.  
  450. NAME:
  451.  
  452.  
  453.  
  454.  
  455.  
  456. ADDRESS:
  457.  
  458.  
  459.  
  460.  
  461.  
  462. CITY:
  463.  
  464.  
  465. STATE:
  466.  
  467.  
  468. ZIP:
  469.  
  470. ELECTRONIC MAIL ADDRESSES (GEnie, InterNet, Compu$erve, AppleLink, America
  471. OnLine): [For updates and bug reports]
  472.  
  473.  
  474.  
  475.  
  476. Macintosh you have:
  477.  
  478.  
  479.  
  480.  
  481. Current version of your System Software:
  482.  
  483.  
  484.  
  485.  
  486.  
  487. Comments about Edit II (add more space if desired!):
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. >>> Don't forget the US$15 shareware fee <<<
  496.